<template>
	<view class="mainpadding">
		<view class="mainpadding_top ffffff" style="border-radius: 20rpx;">
			<view class="flexcenter margin_top5">
				<image :src="dataAll.image_text" class="headimg" mode=""></image>
			</view>
			<view class="titletext bold margin_top xiaohei flexcenter">
				<text class="margin_right">{{dataAll.username}}</text>
				<text>{{dataAll.shzw}}</text>
			</view>
			<view class="smalltext margin_top xiaohui flexcenter">
				<text class="margin_right">{{dataAll.gs}}</text>
				<text>{{dataAll.gszw}}</text>
			</view>
			<view class="strongtext margin_top5">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid:"",
				dataAll:{}
			}
		},
		onLoad(options) {
			this.listid = options.id
			
			this.getDetail()
		},
		methods: {
			getDetail() {
				httpRequest.request('/api/index/qyjfcDetail', 'GET', {
					id: this.listid,
				}).then(res => {
					// uni.setNavigationBarTitle({
					// 	title:res.data.name-*
					// })
					res.data.content = res.data.content ? res.data.content.replace(/\<img/gi,
						'<img style="display:block" ') : "";
					this.dataAll = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style>
page{
	background-color: #00567a;
}
</style>
